package vlms.bean;

import java.util.Date;

/**
*
* This classes is the Data Transfer Object(Value Object) defination for the entity premiummembers
*
*/

public class PremiumCustomer 
{
	private String membershipno;
	private int subscriptionfee;
	private int outstandingmovies = 10;
	private int personid;
	private Date subscriptiondate;
	private Date duedate;
	private boolean autopay;


	public PremiumCustomer(){}
	public PremiumCustomer(String membershipno ,int subscriptionfee ,
						   int outstandingmovies ,int personid ,
						   Date subscriptiondate ,Date duedate,
						   boolean autopay){
		this.membershipno = membershipno;
		this.subscriptionfee = subscriptionfee;
		this.outstandingmovies = outstandingmovies;
		this.personid = personid;
		this.subscriptiondate = subscriptiondate;
		this.duedate = duedate;
		this.autopay = autopay;
	}

	public PremiumCustomer(PremiumCustomer pc) {
		// TODO Auto-generated constructor stub
		this.membershipno = pc.membershipno;
		this.subscriptionfee = pc.subscriptionfee;
		this.outstandingmovies = pc.outstandingmovies;
		this.personid = pc.personid;
		this.subscriptiondate = pc.subscriptiondate;
		this.duedate = pc.duedate;
		this.autopay = pc.autopay;
	}
	public void setMembershipno(String membershipno ){
		 this.membershipno =membershipno;
	}
	public String getMembershipno(){
		 return(membershipno);
	}
	public void setSubscriptionfee(int subscriptionfee ){
		 this.subscriptionfee =subscriptionfee;
	}
	public int getSubscriptionfee(){
		 return(subscriptionfee);
	}
	public void setOutstandingmovies(int outstandingmovies ){
		 this.outstandingmovies =outstandingmovies;
	}
	public int getOutstandingmovies(){
		 return(outstandingmovies);
	}
	public void setPersonid(int personid ){
		 this.personid =personid;
	}
	public int getPersonid(){
		 return(personid);
	}
	public void setSubscriptiondate(Date subscriptiondate ){
		 this.subscriptiondate =subscriptiondate;
	}
	public Date getSubscriptiondate(){
		 return(subscriptiondate);
	}
	public void setDuedate(Date duedate ){
		 this.duedate =duedate;
	}
	public Date getDuedate(){
		 return(duedate);
	}
	public void setAutopay(boolean autopay ){
		 this.autopay =autopay;
	}
	public boolean getAutopay(){
		 return(autopay);
	}
	@Override
	public boolean equals(Object obj) {
		PremiumCustomer pm = (PremiumCustomer) obj;
		boolean result = false;
		
		if (this == obj || membershipno == pm.getMembershipno())
		{
			result = true;
		}
		return result;
	}
}
